import request from '@/utils/request'

// 查询产品工艺流列表
export function listProductTechnology(query) {
  return request({
    url: '/erp/productTechnology/list',
    method: 'get',
    params: query
  })
}

// 查询产品工艺流详细
export function getProductTechnology(id) {
  return request({
    url: '/erp/productTechnology/' + id,
    method: 'get'
  })
}

// 新增产品工艺流
export function addProductTechnology(data) {
  return request({
    url: '/erp/productTechnology',
    method: 'post',
    data: data
  })
}

// 修改产品工艺流
export function updateProductTechnology(data) {
  return request({
    url: '/erp/productTechnology',
    method: 'put',
    data: data
  })
}

// 删除产品工艺流
export function delProductTechnology(id) {
  return request({
    url: '/erp/productTechnology/' + id,
    method: 'delete'
  })
}
